<template>
    <div class="paystatus">
        <div class="pay-info">
            支付成功
        </div>
        <div class="pay-btn">
            <div @click="handlerBtn(0)">回首页</div>
            <div @click="handlerBtn(1)">查看订单</div>
        </div>
    </div>
</template>

<script>
export default {
    methods: {
        handlerBtn(i) {
            let code = '';
            if(i==0){
                code = this.CMD.app.HOME_INDEX
            }else{
                code = this.CMD.app.ORDERLIST;
            }
            console.log(this.$store.state.isApp)
            if (this.$store.state.isApp) {
                let appResult = {
                    code: code,
                    data: {
                    },
                };
                this.common.callBackApp(appResult);
                return;
            }
        }
    }
}
</script>

<style lang="less" scoped>
.paystatus {
    .pay-btn{
        display: flex;
        padding:.2rem;
        justify-content: space-between;
    }
}
</style>